package com.kexun.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kexun.entity.DO.Role;

import java.util.List;

public interface RoleService extends IService<Role> {

    List<Role> roleList();

    IPage<Role> roleList(String roleName, int page, int limit);

    Role findRoleById(int id);

    void updateRole(String ids, int roleId, String roleName);

    void addRole(Role role);

    void addRole(String roleName, String ids);

    void delRole(int role);
}
